import React from 'react'
import ReactDOM from 'react-dom'

class Title extends React.Component {
  render () {
    return (
      <h1>标题1</h1>
    )
  }
}
class Content extends React.Component {
  render () {
    return (
      <section>内容1</section>
    )
  }
}
class App extends React.Component {
  render () {
    return (
      <>
        <Title />
        <Content />
      </>
    )
  }
}

ReactDOM.render(<App />, document.getElementById('root'))